package com.itheima.domain;

/**
 * @Author 王加鑫
 * @Date 2021/4/29 14:56
 * @Version 1.0
 * 英雄类
 */
public class Hero {
    //英雄id
    private int hId;
    //英雄姓名
    private String hName;
    //英雄年龄
    private int hAge;
    //英雄生日
    private String birthday;

    public Hero() {
    }

    public Hero(int hId, String hName, int hAge, String birthday) {
        this.hId = hId;
        this.hName = hName;
        this.hAge = hAge;
        this.birthday = birthday;
    }

    public int gethId() {
        return hId;
    }

    public void sethId(int hId) {
        this.hId = hId;
    }

    public String gethName() {
        return hName;
    }

    public void sethName(String hName) {
        this.hName = hName;
    }

    public int gethAge() {
        return hAge;
    }

    public void sethAge(int hAge) {
        this.hAge = hAge;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Hero{" +
                "hId=" + hId +
                ", hName='" + hName + '\'' +
                ", hAge=" + hAge +
                ", birthday='" + birthday + '\'' +
                '}';
    }
}
